//
//  DeclareController.m
//  hbhy
//
//  Created by Robin on 13-6-20.
//  Copyright (c) 2013年 Robin.zhao. All rights reserved.
//

#import "DeclareController.h"

@interface DeclareController ()

@end

@implementation DeclareController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    UIBarButtonItem *leftBarButton = [[UIBarButtonItem alloc]
                                      initWithBarButtonSystemItem:UIBarButtonSystemItemReply
                                      target:self
                                      action:@selector(backAction)];
    self.topBarItem.leftBarButtonItem = leftBarButton;
   
    

}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

- (void)backAction
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)dealloc {
    [_topBarItem release];
    [super dealloc];
}
@end
